home *** CD-ROM | disk | FTP | other *** search
- IBITS(3I) Last changed: 1-6-98
-
-
- NNAAMMEE
- IIBBIITTSS - Extracts a sequence of bits
-
- SSYYNNOOPPSSIISS
- IIBBIITTSS (([II==]_i,, [PPOOSS==]_p_o_s,, [LLEENN==]_l_e_n))
-
- IIMMPPLLEEMMEENNTTAATTIIOONN
- UNICOS, UNICOS/mk, and IRIX systems
-
- SSTTAANNDDAARRDDSS
- Fortran 90
-
- DDEESSCCRRIIPPTTIIOONN
- The IIBBIITTSS intrinsic function extracts a sequence of bits. It accepts
- the following arguments:
-
- _i Must be of type integer.
-
- _p_o_s Must be of type integer. It must be nonnegative and _p_o_s + _l_e_n
- must be less than or equal to BBIITT__SSIIZZEE (_i).
-
- _l_e_n Must be of type integer and nonnegative.
-
- IIBBIITTSS is an elemental function. The name of this intrinsic cannot be
- passed as an argument.
-
- RREETTUURRNN VVAALLUUEESS
- The result type and type parameter are the same as _i. The result has
- the value of the sequence of _l_e_n bits in _i beginning at bit _p_o_s
- right-adjusted and with all other bits zero. The bit model defines
- the model for the interpretation of an integer value as a sequence of
- bits. For more information on the bit model, see the MMOODDEELLSS(3I) man
- page.
-
- EEXXAAMMPPLLEESS
- IIBBIITTSS((1144,, 11,, 33)) has the value 7. In this example, the bits are
- numbered from right to left, so they are extracted from right to left.
-
- SSEEEE AALLSSOO
- MMOODDEELLSS(3I)
-
- _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l, publication SR-2138, for the
- printed version of this man page.
-
-